package com.audaque.springboot.foshanupload.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zgb
 * @desc ...
 * @date 2023-07-19 18:32:23
 */
@RestController
public class DoFilterExceptionController {
    /**
     * 重新抛出异常
     */
    @RequestMapping("/doFilterException")
    public void doFilterException(HttpServletRequest request) throws Exception {
        throw ((Exception) request.getAttribute("doFilterException"));
    }
}

